#if (${paginator.PageNums} > 1)
<ul class="pagination pagination-sm">
    #if (${paginator.HasPrev})
    <li><a href="${paginator.PageLinkFirst}">首页</a></li>
    <li><a href="${paginator.PageLinkPrev}"><span><i class="glyphicon glyphicon-backward"></i></span></a></li>
    #else
    <li class="disabled"><a>首页</a></li>
    <li class="disabled"><a><span><i class="glyphicon glyphicon-backward"></i></span></a></li>
    #end
    #foreach ($page in ${paginator.Pages})
    <li
    #if (${paginator.IsActive) 
    class="active"
    #end
    >
        <a href="${paginator.PageLink} ${page}">${page}</a>
    </li>
    #end
    #if (${paginator.HasNext})
    <li><a href="${paginator.PageLinkNext}"><span><i class="glyphicon glyphicon-forward"></i></span></a></li>
    <li><a href="${paginator.PageLinkLast}">尾页</a></li>
    #else
    <li class="disabled"><a><span><i class="glyphicon glyphicon-forward"></i></span></a></li>
    <li class="disabled"><a>尾页</a></li>
    #end
</ul>
#end